<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>上善平台管理</title>
    <link href="resources/plugins/bootstrap/css/bootstrap.css"/>
    <link href="resources/plugins/bootstrap/css/bootstrap.min.css"/>
    <link href="resources/plugins/bootstrap/css/bootstrap-theme.css"/>
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/main1.css"/>"/>
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/bootstrap-responsive.min.css"/>">
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/bootstrap.min.css"/>">
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/bootstrap.css"/>"/>
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/global.css"/>">
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/bootstrap.min.css"/>">
    <script src="<c:url value="/resources/js/jquery.js"/>" type="text/javascript"></script>
    <script src="<c:url value="/resources/js/bootstrap.min.js"/>"></script>
</head>
<body onResize="Resize()" onLoad="Resize()">
<jsp:include page="/WEB-INF/views/platform/navigator.jsp"></jsp:include>
<div class="container" style="background-color:#DCEAF4; width:1300px; height:500px;border-radius: 0px 0px 0px 0px;">
    <div class="btn-group pull-right" style="margin-bottom:8px;">
        <a class="btn btn-lg btn-primary" href="/platform/word/edit" data-toggle="tooltip">添加</a>
    </div>
    <p></p>
    <div class="main-content">

        <table class="table">
            <thead>
            <tr>
                <th>所在模块</th>
                <th>来源特点</th>
                <th>来源描述</th>
                <th>影响</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <c:if test="${wordDataList.size() gt 0}">
            <c:forEach items="${wordDataList}" var="wordData">
                <tr>
                    <td>${wordData.section}</td>
                    <td>${wordData.feature}</td>
                    <td>${wordData.description}</td>
                    <td>${wordData.effect}</td>
                    <td>
                        <a class="btn btn-xs btn-primary" href="/platform/word/edit?source_id=${wordData.source_id}" data-toggle="tooltip">修改</a>

                        &nbsp;&nbsp;
                        <a class="btn btn-primary btn-xs"
                           href="javascript:void(0)" data-toggle="tooltip" title="删除"
                           onclick="if (confirm('确认要删除本记录吗？此操作将不可恢复！'))
                                   location = '<c:url value="/platform/word/delete?source_id=${wordData.source_id}"/>';
                                   return false;"><span class="glyphicon glyphicon-trash"></span>删除</a>


                    </td>
                </tr>
            </c:forEach>
            <tr>
                <td colspan="7">
                </td>
            </tr></c:if>
            <c:if test="${wordDataList.size() eq 0}">
                 <tr>
                     <td colspan="7">还没有任何数据</td>
                 </tr>
             </c:if>
            </tbody>
        </table>
    </div>
</div>
<hr/>
<div align="center" style="width:100%;border-top:1px solid; float:left;margin-top:500px;">
    CopyRight@2015<br/>
</div>
</body>
</html>
